package com.zz.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.apache.ibatis.annotations.Select;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;
import java.io.Serializable;


/**
 * 社团审核
 * 此表还未使用
 * @author zhouzi
 */
@Data
@ApiModel("社团审核")
public class ClubAuditing implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键")
    @NotNull(message = "社团审核表主键不能为空",groups = {Select.class})
    @TableId(type= IdType.AUTO)//主键自增
    private Integer id;

    //学号
    @ApiModelProperty("学号")
    @NotNull(message = "审核人学号不能为空")
    @Range(min = 1000000000, message = "审核人学号为10位")
    private Integer userId;

    //社团编码
    @ApiModelProperty("社团编码")
    @NotNull(message = "社团编码不能为空")
    private Integer clubId;

    //操作
    @ApiModelProperty("操作")
    @NotNull(message = "审核人操作不能为空，默认为0")
    private Integer operate;

    // 是否被审核
    @ApiModelProperty("审核状态码")
    @NotNull(message = "审核状态不能为空")
    private Integer status;
}
